package cn.itcast.demo.repository;

import cn.itcast.demo.pojo.Item;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @Author: taft
 * @Date: 2018-12-24 9:49
 */
public interface ItemRepository extends ElasticsearchRepository<Item,Long> {

    List<Item> findByTitle(String title);

    List<Item> findByPriceBetween(double p1, double p2);
}
